package com.Xsoft.ShoppingList;

public class Product {
	private String name;
	private int price;
	private String category="Default";
	private boolean isBought=false;
	private boolean isInProductList=false;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Product(String name, int price, String category) {
		super();
		this.name = name;
		this.price = price;
		this.category = category;
	}

	public Product(String name, boolean isBought, boolean isInProductList) {
		super();
		this.name = name;
		this.isBought = isBought;
		this.isInProductList = isInProductList;
	}

	public Product(String name) {
		super();
		this.name = name;
	}

	public Product(String name, boolean isBought) {
		super();
		this.name = name;
		this.isBought = isBought;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return name;
	}

	public boolean isBought() {
		return isBought;
	}

	public void setBought(boolean isBought) {
		this.isBought = isBought;
	}

	public boolean isInList() {
		return isInProductList;
	}

	public void toProductList(boolean isInProductList) {
		this.isInProductList = isInProductList;
	}

	public Product(String name, int price, String category, boolean isBought,
			boolean isInProductList) {
		super();
		this.name = name;
		this.price = price;
		this.category = category;
		this.isBought = isBought;
		this.isInProductList = isInProductList;
	}

}
